﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fis.Win.Forms
{
    public partial class NewYearBookForm : BaseForm
    {
        public NewYearBookForm()
        {
            InitializeComponent();
        }

        private void NewYearBookForm_Load(object sender, EventArgs e)
        {

        }

        private void BtnOK_Click(object sender, EventArgs e)
        {
            if (ViewProvider.ExecuteUpdate(ViewModel))
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("新年度账套创建成功。");
                Close();
                return;
            }
        }

        private void BtnCancel_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
